package Chap9;
//***************************************************************************************
//  Book.java               Author: Lewis/Loftus
//
//  Represents a book. Used as the parent of a derived calss to demonstrate inheritance.
//***************************************************************************************
public class Book
{
    protected int pages = 1500;

    //-----------------------------------------------------------------------------------
    // Pages mutator.
    //-----------------------------------------------------------------------------------
    public void setPages(int numPages)
    {
        pages = numPages;
    }

    //-----------------------------------------------------------------------------------
    // Pages acessor.
    //-----------------------------------------------------------------------------------
    public int getPages()
    {
        return pages;
    }
}
